package com.bcu.cn.onlineexamsystem.exammanage.service.impl;

import com.bcu.cn.onlineexamsystem.exammanage.entity.Course;
import com.bcu.cn.onlineexamsystem.exammanage.mapper.CourseMapper;
import com.bcu.cn.onlineexamsystem.exammanage.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    
    @Autowired
    private CourseMapper courseMapper;
    
    @Override
    public List<Course> getCoursesByTeacherId(String teacherId) {
        return courseMapper.findByTeacherId(teacherId);
    }
} 